package com.wang.controller;

import org.springframework.web.bind.annotation.*;

@RestController
public class RestfulController {
    @GetMapping("/restful")
    public String showGet(){
        return "get";
    }

    @PostMapping("/restful")
    public String shoPost(){
        return "post";
    }
    @DeleteMapping("/restful")
    public String showDelete(){
        return "delete";
    }

    @PutMapping("/restful")
    public String showPut(){
        return "put";
    }
}
